<%-- 
    Document   : view-average-mould-sm60-data
    Created on : 10 Agu 11, 15:16:31
    Author     : Bayu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <jsp:include page="includes/script.html"/>
        <title>Average Moulding SM60 Data</title>
    </head>
    <body>
        <h2 align="center">Average Moulding SM60 Data</h2>
        <br>
        <center>
            ${msg}
        <form method="get">

            From : <input type="text" value="${start}" name="start" readonly> <img src="images/calendar.gif" onclick="displayDatePicker('start', false, 'ymd', '-');" />&nbsp;
             To : <input type="text" value="${end}" name="end" readonly> <img src="images/calendar.gif" onclick="displayDatePicker('end', false, 'ymd', '-');" />&nbsp;
               <input  type="submit" name="submit" value="View" >
        </form>
               <br>
        <table cellpading="1" cellspacing="1" bgcolor="#010101" align="center" width="800">
            <tr bgcolor="#c2c3c4">
                <td width="10%">A</td>
                <td width="10%">B</td>
                <td width="10%">C</td>
                <td width="10%">D</td>
                <td width="10%">E</td>
                <td width="10%">F</td>
                <td width="10%">G</td>
                <td width="10%">H</td>
                <td width="10%">I</td>
                <td width="10%">Month</td>
                <td width="20%">Action</td>
            </tr>
           <c:forEach items="${data}" var="data">
              <tr bgcolor="#f2f3f4">
                <td>${data.a}</td>
                <td>${data.b}</td>
                <td>${data.c}</td>
                <td>${data.d}</td>
                <td>${data.e}</td>
                <td>${data.f}</td>
                <td>${data.g}</td>
                <td>${data.h}</td>
                <td>${data.i}</td>
                <td><fmt:formatDate value="${data.date}" pattern="MMM yyyy" /></td>
                <td>
                    <a href="tpsaverage-update.htm?id=${data.id}">Edit</a>&nbsp;
                    <a href="view-average-mould-sm60-data.htm?id=${data.id}">Delete</a>&nbsp;
                </td>

            </tr>

            </c:forEach>
            </table>
         </center>
    </body>
</html>